package com.asap.demo.model;

public class LoginWarning {

	private String userId;
	private String type;
	private String ip;

	public LoginWarning() {
	}

	public LoginWarning(String userId, String type, String ip) {
		this.userId = userId;
		this.type = type;
		this.ip = ip;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Override
	public String toString() {
		final StringBuilder sb = new StringBuilder("{");
		sb.append("\"userId\":\"")
				.append(userId).append('\"');
		sb.append(",\"type\":\"")
				.append(type).append('\"');
		sb.append(",\"ip\":\"")
				.append(ip).append('\"');
		sb.append('}');
		return sb.toString();
	}
}
